home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Utilities / WBStars / source / WBStars_include.h < prev    next >
C/C++ Source or Header  |  1996-07-23  |  3KB  |  121 lines

  1. /* $VER: WBStars_include.h 1.19 (23.07.1996) */
  2.  
  3. /* --- include part --- */
  4. #include <exec/types.h>
  5. #include <exec/libraries.h>
  6. #include <exec/ports.h>
  7. #include <graphics/displayinfo.h>
  8. #include <graphics/gfxbase.h>
  9. #include <graphics/gfx.h>
  10. #include <graphics/rastport.h>
  11. #include <intuition/intuition.h>
  12. #include <intuition/classes.h>
  13. #include <intuition/classusr.h>
  14. #include <intuition/imageclass.h>
  15. #include <intuition/gadgetclass.h>
  16. #include <intuition/intuitionbase.h>
  17. #include <libraries/asl.h>
  18. #include <libraries/dos.h>
  19. #include <libraries/commodities.h>
  20. #include <libraries/gadtools.h>
  21. #include <utility/utility.h>
  22. #include <stdlib.h>
  23. #include <math.h>
  24. #ifdef M68881
  25. #include <m68881.h>
  26. #endif
  27. #include <limits.h>
  28. #include <string.h>
  29.  
  30. #include <proto/exec.h>
  31. #include <proto/graphics.h>
  32. #include <proto/dos.h>
  33. #include <proto/intuition.h>
  34. #include <proto/commodities.h>
  35. #include <proto/utility.h>
  36. #include <proto/gadtools.h>
  37. #include <proto/diskfont.h>
  38. #include <proto/asl.h>
  39. #include <clib/macros.h>
  40. #include <clib/alib_protos.h>
  41.  
  42. /* --- constant declarations --- */
  43. #define MODE_SCREEN    0
  44. #define MODE_WIN    1
  45. #define    c            299792458.0
  46. #define MAXPOINTS    254
  47. #define SCB            0.3
  48. #define QUIT        0
  49. #define ACTIVE        1
  50. #define    INACTIVE    2
  51. #define EVENT_WAIT    25
  52. #define STAR_WAIT    4
  53. #define IDC_HIDE    1
  54. #define IDC_QUIT    2
  55. #define PREF_CNT    8
  56.  
  57. /* --- default values --- */
  58. #define    MAXSTARS    100
  59. #define AZI            0
  60. #define HEI            0
  61. #define WRP            3
  62. #define BACKPEN        1
  63. #define PRI            -1
  64. #define STRTMODE    MODE_WIN
  65. #define    CONTRAST    5
  66.  
  67. /* --- type declarations --- */
  68. struct stars
  69. {
  70.     double    x3,y3,z3;
  71.     short    x[MAXPOINTS],y[MAXPOINTS];
  72.     char    col[MAXPOINTS];
  73.     char    anzpoints;
  74. };
  75.  
  76. /* --- WBStars_main.c --- */
  77. extern CxObj            *broker;
  78. extern struct MsgPort    *broker_mp;
  79. extern ULONG            cxsigflag;
  80. extern struct stars far    star[MAXSTARS];
  81. extern short            az,az2;
  82. extern short            he,he2;
  83. extern short            wbs_pri;
  84. extern char                anzstars;
  85. extern char                warpf;
  86. extern short            bgpen;
  87. extern char                status;
  88. extern char                mode;
  89. extern char    file[60];
  90. extern char    dir[60];
  91. extern char    pat[60];
  92. extern char    immediate;
  93.  
  94. /* --- WBStars_sys.c --- */
  95. extern struct    Screen        *Screen;
  96. extern struct    Window        *wnd;
  97. extern struct    RastPort    *RastP;
  98. extern short    maxx;
  99. extern short    maxy;
  100. extern char        gui;
  101. extern char        idcmp;
  102. extern short    anzcolors;
  103. extern struct IntuitionBase        *IntuitionBase;
  104. extern struct GfxBase            *GfxBase;
  105. extern struct Library            *CxBase;
  106. extern struct DosLibrary        *DOSBase;
  107. extern struct Library            *GadToolsBase;
  108. extern struct Library            *DiskfontBase;
  109. extern struct Library            *UtilityBase;
  110. extern struct Library            *AslBase;
  111. extern struct ColorMap            *colmap;
  112.  
  113. /* --- WBStars_temp.c --- */
  114. extern char    colnums[256];
  115. extern char col;
  116. extern char    colflag;
  117.  
  118. /* --- WBStars_colors.c --- */
  119. extern char    coltable[16][16];
  120. extern char    contrast;
  121.